import request from './request'

export const getGoods = () => {
  return request({
    url: 'product/all',
    method: 'get'
  })
}

export const addGoods = (data) => {
  return request({
    url: 'product/add',
    method: 'post',
    data
  })
}

export const editGoods = (productId, riskengineID) => {
  return request({
    url: `product/engine/id/${productId}/${riskengineID}`,
    method: 'get'
  })
}
